package org.example.api.base.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.stereotype.Component;

@Component
public class RawDataFlagInterceptor implements RequestInterceptor {
  public static final String RAW_DATA_KEY = "raw-data";

  @Override
  public void apply(RequestTemplate template) {
    // 不需要统一的结果体包裹
    template.header(RAW_DATA_KEY, "true");
  }
}
